﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Utility1;

namespace eDream.Page
{
    public partial class Thank_oder : System.Web.UI.UserControl
    {
        public string pathUrl = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            pathUrl = WebUtils.pathUrl();
        }

        protected void ASPxButton1_Click(object sender, EventArgs e)
        {
            UserDB user_obj = (UserDB)Session[Global.SESS_USER];
            String link="";
            try
            {
                if (user_obj != null)
                {
                    link = pathUrl + "/Don-hang.html";
                }
                else
                {
                    string k = Request.QueryString["k"];
                    link = pathUrl + "/Don-hang/" + k + "/no.html";
                }
            }
            catch (Exception) { }
            if (link != "")
                Response.Redirect(link);
        }
    }
}